include ../Makefile.shared

define PROJ_bn
  SOURCES = ../lib/expat.mli bifParseType.ml bifParser.mly bifLexer.mll \
            bnType.ml bifFile.ml xmodFile.ml cnParseTypes.ml \
            cnParser.mly cnLexer.mll cnFile.ml bn.ml bn.mli
  RESULT = bn
endef
export PROJ_bn

# If the environment does not define subprojects to handle,
# then set a default
ifndef SUBPROJS
  export SUBPROJS = bn
endif

export LIBS=ext mn

# Default target to use
all: ncl
	cp bn.cmi bn.cmxa bn.a $(SRCLIBDIR)

# Catch-all target will be applied to all subprojects automatically
%:
	@$(MAKE) -f $(OCAMLMAKEFILE) subprojs SUBTARGET=$@
